cmake_minimum_required(VERSION 3.6)
project(testserver)
add_subdirectory(Client)

add_executable(testDataBase testDataBase.cpp
        ../src/Business/DataBase/DataBaseHelper.cpp
        ../src/Business/DataBase/IoTDataBaseFactory.cpp
        ../src/Business/DataBase/UserDataBaseFactory.cpp
        ../src/Tools/CommonTool.cpp
        )
target_link_libraries(testDataBase
        SQLiteCpp
        handy_s
        )

add_executable(testCpp testProtocol.cpp ../src/Tools/GeeJoanMD5.cpp ../src/Tools/CommonTool.cpp)

target_link_libraries(testCpp GeeJoanProtocol)

add_executable(testAuth testAuth.cpp ../src/Tools/CommonTool.cpp)
target_link_libraries(testAuth GeeJoanProtocol)